import { request } from "@umijs/max";;
import { UMS_REQUEST_PREFIX } from "@/utils/config";

/**
 * 文件上传
 * @returns 
 */
export async function fileUpload(params: any) {
  return request(`${UMS_REQUEST_PREFIX}/base/ossUploader/upload`, {
    method: 'POST',
    data: params
  });
}
/**
 * 销售下拉列表
 * @returns 
 */
export async function fetchInnerUserSalesOptions(params: any) {
  return request(`${UMS_REQUEST_PREFIX}/sso/innerUser/salesOptions`, {
    method: 'POST',
    dataField: 'data'
  });
}